package com.huihuiyun.huihuiyun.server.repository;

import com.huihuiyun.huihuiyun.server.domain.HhyMemberFavourite;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface HhyMemberFavouriteRepository extends JpaRepository<HhyMemberFavourite, String> {
    Page<HhyMemberFavourite> findAllByMemberId(String memberId, Pageable pageable);

    List<HhyMemberFavourite> findAllByMemberId(String memberId);
}
